<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

    <!-- 动态绑定 -->
    <!-- b-bind 绑定"这里的西会被Vue当作表达式解析" -->
    <div id="app">
        <a v-bind:href="url[0]">百度</a>
        <a :href="url[1]">微博</a>
        <h1 :x="hello"></h1>
    </div>

    <script src="../JS/vue.js"></script>
    <script>
        new Vue({
            el: '#app',
            data: {
                url: ['https://www.baidu.com/',
                      'https://weibo.com/'],
                hello:'nihao'
            }
        })
    </script>
</body>

</html>